package com.tiancheng.trade.merchant.vo.product;

import lombok.Data;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;


/**
 * 开放接口-商品实体
 */
@Data
public class OpenDeleteProductVO {

    /**
     * 业务场景
     */
    @NotEmpty(message = "业务场景不允许为空")
    private String orderSource;

    @Valid
    @NotEmpty(message = "商品信息不允许为空")
    private List<Product> products;

    @Data
    public static class Product {
        /**
         * 商户编码/商户ID
         */
        @NotEmpty(message = "商户编码不允许为空")
        private String merchantCode;

        /**
         * 业务侧产品编码
         */
        @NotEmpty(message = "交易中台产品编码不允许为空")
        private String productCode;
    }

}
